/*
 * @Author: “Jackson” “1145239633@qq.com”
 * @Date: 2025-08-08 14:41:41
 * @LastEditors: “Jackson” “1145239633@qq.com”
 * @LastEditTime: 2025-08-08 16:39:54
 * @FilePath: \shaangu-web\src\api\home.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import request from "@/utils/request";
// 获取总产品数量
export function count() {
  return request({
    url: "/product/home/count",
    method: "get",
  });
}
// 获取事故产品数量
export function accidentCount() {
  return request({
    url: "/product/home/accidentCount",
    method: "get",
  });
}
// 获取报告上传数量
export function reportCount() {
  return request({
    url: "/product/home/reportCount",
    method: "get",
  });
}
// 获取年度新增产品数
export function currentYearCount() {
  return request({
    url: "/product/home/currentYearCount",
    method: "get",
  });
}
//不同类别覆盖数
export function categoryTypeInfo() {
  return request({
    url: '/product/home/categoryTypeInfo',
    method: 'get'
  })
}

// 获取产品类别分布
export function categoryDistribution() {
  return request({
    url: "/product/home/categoryDistribution",
    method: "get",
  });
}
// 获取近10年产品生产分布
export function last10YearsDistribution() {
  return request({
    url: "/product/home/last10YearsDistribution",
    method: "get",
  });
}
// 获取机组布置方式分布
export function unitLayoutDistribution() {
  return request({
    url: "/product/home/unitLayoutDistribution",
    method: "get",
  });
}

// 事故类型
// export function unitLayoutDistribution() {
//   return request({
//     url: '/product/home/unitLayoutDistribution',
//     method: 'get'
//   })
// }
// 支承轴承直径
export function bearingDiameterDistribution() {
  return request({
    url: "/product/home/bearingDiameterDistribution",
    method: "get",
  });
}

// 主轴连接方式分布
export function spindleConnectionDistribution() {
  return request({
    url: "/product/home/spindleConnectionDistribution",
    method: "get",
  });
}

// 叶根型式分布
export function bladeRootTypeDistribution() {
  return request({
    url: "/product/home/bladeRootTypeDistribution",
    method: "get",
  });
}

// 推力轴承直径分布
export function thrustBearingDiameterPiePure() {
  return request({
    url: "/product/home/thrustBearingDiameterPiePure",
    method: "get",
  });
}

// 机型
export function productModelDistribution() {
  return request({
    url: '/product/home/productModelDistribution',
    method: 'get'
  })
}

// 计算文件类型分布
export function calcFileDistribution() {
  return request({
    url: "/product/home/calcFileDistribution",
    method: "get",
  });
}
